package ch7.HUffman;

public class ScoreDemo {
    public static String convert(int score) {
        if(score < 0 || score > 100) {
            return "不合法的分数";
        }
        String result;
        if (score < 60) {
            result = "不及格";
        } else if (score < 70) {
            result = "及格";
        } else if (score < 80) {
            result = "中等";
        } else if (score < 90) {
            result = "良好";
        } else {
            result = "优秀";
        }
        return result;
    }

    public static void main(String[] args) {
        System.out.println(ScoreDemo.convert(92));
    }
}
